<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%> 
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%> 
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/translator.tld" prefix="trans" %>
<trans:initPage module="orgselector" />
<div align=center>
<table width=90% cellspacing="1" background=<html:rewrite page="/images/pixelbgtable.gif"/> class="text_searchbold" cellpadding=4>
<tr><td class="textalb">
<trans:showPageMessage label="orgselector.searchorgs" />
</tr>
<logic:present name="cancel">
<script language="JavaScript">
window.close();
</script>
</logic:present>
<logic:present name="submit">
<script language="javascript">
opener.after_org_sel();window.close();
</script>
</logic:present>
<html:form action="/org/selector">

<logic:present name="hidequickadd">
	<input type="hidden" name="hidequickadd" value='<bean:write name="hidequickadd"/>' />
</logic:present>
		<tr><td bgcolor=ffffff>
<table cellpadding="2" cellspacing="1" bgcolor="#3399CC" class="text_searchbold" width=100%>
<tr><td valign=right bgcolor=#FFFFFF colspan=3>
	<trans:showPageMessage label="orgselector.SelectType" />
	
</td><td bgcolor=#FFFFFF>
	<html:select property="typeSearch">
		<html:option value="-1"><trans:showPageMessage label="orgselector.all" hide_link="true"/></html:option>
		<html:options collection="OrgType_LIST" property="id" labelProperty="name"/>
	</html:select>
</td></tr>
<tr bgcolor=#FFFFFF><td valign=right  colspan=3>
<trans:showPageMessage label="orgselector.enterkeyword" />
</td><td bgcolor=#FFFFFF>
<html:text property="textSearch" styleClass="text"/>
<html:submit property="search" styleClass="buton"><trans:showPageMessage label="orgselector.search" hide_link="true"/></html:submit>
</td></tr>

</table>
<br/>
<table width=100% cellpadding="4" cellspacing="1" bgcolor="#3399CC" class="text_searchbold">
<logic:present name="OrgSearchResults">
<tr colspan=2><td width=70%>
<b><font color=#FFFFFF><trans:showPageMessage label="orgselector.name" /></font></b>
</td><td width=30%>
<b><font color=#FFFFFF><trans:showPageMessage label="orgselector.code" /></font></b>
</td></tr>

<logic:iterate scope="request" name="OrgSearchResults" id="org">
<tr colspan=2><td bgcolor=#f9f9f9>
	<html:multibox property="selectedOrgs">
	<bean:write name="org" property="id"/>
	</html:multibox>
	<bean:write name="org" property="name" filter="false"/>
</td><td bgcolor=#FFFFFF>
	<bean:write name="org" property="AIDAOrg" filter="false"/>
</td></tr>
</logic:iterate>


</logic:present>
</table>
<br/>
<tr>
	<logic:present name="OrgSearchResults">
	<td bgcolor=#f9f9f9>
	<div align="center">
	<html:submit property="add" styleClass="butonsave"><trans:showPageMessage label="orgselector.addselected" hide_link="true"/></html:submit>
	&nbsp;&nbsp;&nbsp;
	</logic:present>
	<logic:present name="OrgSearchResults">
	<html:submit property="clear" styleClass="butonsave"><trans:showPageMessage label="orgselector.clearlist" hide_link="true"/></html:submit>
&nbsp;&nbsp;&nbsp;
	</logic:present>
	<logic:present name="OrgSearchResults">
<html:submit property="cancel" styleClass="butonsave"><trans:showPageMessage label="orgselector.cancel" hide_link="true" /></html:submit>
</logic:present>
</div>
	</td>
</tr>
<logic:present name="pagetk">
<tr>
<td bgcolor="#FFFFFF">
<trans:showPageMessage label="orgselector.pages" />
<logic:iterate scope="request" name="pagetk" id="token">
<html:link page="/org/selector.do" name="token" property="params">
<bean:write name="token" property="no"/>
</html:link>
&nbsp;|&nbsp;
</logic:iterate>
</td>
</tr>
</logic:present>

<logic:notPresent name="hidequickadd">
<tr> 
<td bgcolor="#FFFFFF">
	Cannot find you org ? <html:link page="/org/selector.do?quickadd=yes">Add</html:link> it!
</td>
</tr>
</logic:notPresent>
</html:form>
</td></tr>
</table><trans:showPageMessage label="translator.showhiddentags"/>
</div>